package com.hx.test.repository;

import com.hx.test.domain.User;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

public class UserRepositoryImpl implements UserCustom {

    @PersistenceContext(name = "entityManagerFactory")
    private EntityManager em;

    @Override
    public User findByUserId(String id) {
        System.out.println("Repository ...");
        return this.em.find(User.class,id);
    }
}
